package typeinformation;

import java.lang.reflect.Method;

class TestClass{
	public void methodOne(){
		System.out.println("methodOne");
	}
	public void methodTwo(){
		System.out.println("methodTwo");
	}
}

public class GetClassMethod {
	
	public <T> void testGetMethod() throws ClassNotFoundException{
		Class<T> classInformation = (Class<T>) Class.forName("typeinformation.TestClass");
		Method methodArr[] =  classInformation.getMethods();
		// 
		for (int i = 0; i < methodArr.length - 9; i++) {
			Method method = methodArr[i];
			System.out.println(method.getName());
			
			Class paramType[] = new Class[1];
			paramType[0] = Class.forName("typeinformation.TestClass"); 
			
			
		}
	}

	public static void main(String[] args) throws ClassNotFoundException {
		GetClassMethod getClassMethod = new GetClassMethod();
		getClassMethod.testGetMethod();
	}
}
